/**
 * 
 */
package dstation.client;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

import dstation.databeans.ResultBean;
import dstation.databeans.ResultDisplayBean;
import dstation.databeans.RobotBean;
import dstation.databeans.SensorBean;
import dstation.databeans.TestBean;

/**
 * @author Evan
 *
 */
public interface AddRobotAsync {
	void addRobot(RobotBean r, AsyncCallback<RobotBean> a);

	void retrieveAll(AsyncCallback<List<RobotBean>> a);

	void lookupRobot(int intValue, AsyncCallback<RobotBean> a);

	void lookupSensors(int sensors, AsyncCallback<List<SensorBean>> a);

	void addTest(TestBean t, AsyncCallback<TestBean> a);

	void getTestTable(AsyncCallback<List<TestBean>> a);

	void lookupTest(int testid, AsyncCallback<TestBean> a);

	void updateTest(TestBean t, AsyncCallback<TestBean> asyncCallback);

	void runTest(ResultBean res, TestBean t,
			AsyncCallback<ResultBean> asyncCallback);

	void lookupRobotResults(int robotId, int numResults, String robotName, String testName,
			String sensorName,
			AsyncCallback<List<ResultDisplayBean>> asyncCallback);

	void testHasNoResults(int testid, AsyncCallback<Boolean> asyncCallback);
}
